package com.szml.mapper;


import com.github.pagehelper.Page;
import com.szml.dto.ProductPageDTO;
import com.szml.entity.ProductBasic;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.szml.vo.ProductPageVO;

/**
* @author 25650
* @description 针对表【product_basic】的数据库操作Mapper
* @createDate 2024-06-17 15:49:10
* @Entity com.szml.pojo.ProductBasic
*/
public interface ProductBasicMapper extends BaseMapper<ProductBasic> {

//    List<Long> selectDetailIdsByProductIds(List<Long> productIds);
    /**
     * 条件分页查询商品信息
     * @param productPageDTO
     * @return
     */
//    @Select("select b.product_id,d.product_name,product_online_state,remaining_stock,time_on,time_off,user_id from product_basic b inner join product_details d on b.product_details_id=d.p_detail_id")
    Page<ProductPageVO> conditionPage(ProductPageDTO productPageDTO);
}




